/**
 * @summary: 统计分析
 */

// 工作管理分析
const workStat = {
    path: '/stat/workStat',
    name: 'workStat',
    code: 'analyse:work',
    routes: [
        // 工作透视
        {
            path: '/stat/workStat/workOverview',
            name: 'workOverview',
            code: 'analyse:work:perspective',
            routes: [
                // 集团管理透视
                {
                    path: '/stat/workStat/workOverview/overview',
                    name: 'overview',
                    code: 'excludeUser',
                    component: './Organization/Overview',
                    iconType: 'layout'
                },
                // 公司管理透视
                {
                    path: '/stat/workStat/workOverview/work/overview',
                    name: 'workOverview',
                    code: 'excludeUser',
                    component: './Work/EmployeeOverview',
                    iconType: 'fund'
                },
                // 公司管理透视——考核员工列表
                {
                    path: '/stat/workStat/workOverview/work/employee',
                    name: 'workEmployee',
                    component: './Work/Employee',
                    hideInMenu: true,
                    code: true,
                    iconType: 'layout'
                },
                // 公司管理透视——个人工作透视
                {
                    path: '/stat/workStat/workOverview/work/employeeinfo',
                    name: 'workEmployeeInfo',
                    component: './Work/Employee/EmployeeInfo',
                    hideInMenu: true,
                    code: true
                },
                // 公司管理透视——版本进度清单
                {
                    path: '/stat/workStat/workOverview/work/version',
                    name: 'workVersion',
                    component: './Work/Version',
                    hideInMenu: true,
                    code: true
                },
                // 公司管理透视——工作任务列表
                {
                    path: '/stat/workStat/workOverview/work/task',
                    name: 'workTask',
                    component: './Work/Task',
                    hideInMenu: true,
                    code: true
                },
                // 产品线透视
                {
                    path: '/stat/workStat/workOverview/product',
                    name: 'product',
                    component: './Work/Product',
                    code: true,
                    iconType: 'bulb'
                },
                // 部门管理透视
                {
                    path: '/stat/workStat/workOverview/department/overview',
                    name: 'departmentOverview',
                    code: 'excludeUser',
                    component: './Work/Department/Overview',
                    iconType: 'layout'
                },
                // 部门管理透视——部门工作列表
                {
                    path: '/stat/workStat/workOverview/department/list',
                    name: 'departmentList',
                    component: './Work/Department/List',
                    hideInMenu: true,
                    code: true,
                    iconType: 'project'
                },
                // HR管理透视
                {
                    path: '/stat/workStat/workOverview/hr/overview',
                    name: 'hrOverview',
                    component: './Work/HR/HR',
                    code: true,
                    iconType: 'idcard'
                }
            ]
        }
    ]
};

// 企业管理分析
const companyStat = {
    path: '/stat/companyStat',
    name: 'companyStat',
    code: 'analyse:bussiness',
    routes: [
        // 行政管理分析
        {
            path: '/stat/companyStat/admStat',
            name: 'admStat',
            code: 'analyse:bussiness:administration',
            routes: [
                // 流程分析
                {
                    path: '/stat/companyStat/admStat/flow',
                    name: 'flow',
                    component: './Flow/FlowManage/Stat/Stat',
                    code: 'analyse:bussiness:administration:flow',
                    iconType: 'build'
                }
            ]
        },
        // 人资管理分析
        {
            path: '/stat/companyStat/hrStat',
            name: 'hrStat',
            code: 'analyse:bussiness:hr',
            routes: [
                // 组织分析
                {
                    path: '/stat/companyStat/hrStat/orgs',
                    name: 'orgs',
                    code: 'analyse:bussiness:hr:org',
                    iconType: 'golden',
                    routes: [
                        // 组织分析——组织架构分析
                        {
                            path: '/stat/companyStat/hrStat/orgs/system',
                            name: 'system',
                            code: 'analyse:bussiness:hr:org:system',
                            component: './Organization/Hr/ZzjgFx',
                            iconType: 'golden'
                        },
                        // 组织分析——员工特征分析
                        {
                            path: '/stat/companyStat/hrStat/orgs/staff',
                            name: 'staff',
                            component: './Organization/Hr/YgtxFx',
                            code: 'analyse:bussiness:hr:org:staff',
                            hideInMenu: true
                        }
                    ]
                },
                // 考勤分析
                {
                    path: '/stat/companyStat/hrStat/report',
                    name: 'report',
                    component: './Attendance/Stat/Report/index',
                    code: 'analyse:bussiness:hr:attendance',
                    iconType: 'snippets'
                },
                // 招聘分析
                {
                    name: 'recruit',
                    path: '/stat/companyStat/hrStat/recruit',
                    code: 'analyse:bussiness:hr:job',
                    iconType: 'container',
                    routes: [
                        // 招聘结果分析
                        {
                            name: 'result',
                            path: '/stat/companyStat/hrStat/recruit/result',
                            code: 'analyse:job:resultanalyse',
                            component: './RecruitStat/Result'
                        },
                        // 招聘效率分析
                        {
                            name: 'talentPool',
                            path: '/stat/companyStat/hrStat/recruit/talentPool',
                            code: 'analyse:job:efficanalyse',
                            component: './RecruitStat/TalentPool'
                        },
                        // 职位与人才库分析
                        {
                            name: 'process',
                            path: '/stat/companyStat/hrStat/recruit/process',
                            code: 'analyse:job:talentanalyse',
                            component: './RecruitStat/Process'
                        }
                    ]
                },
                // 入转调离分析
                {
                    path: '/stat/companyStat/hrStat/personnel',
                    name: 'personnel',
                    component: './Attendance/Stat/Personnel/index',
                    code: 'analyse:bussiness:hr:personnel',
                    iconType: 'code'
                }
            ]
        }
    ]
};

export default {
    name: 'stat',
    path: '/stat',
    menuLevel: 0,
    icon: 'bar-chart',
    code: 'analyse',
    routes: [workStat, companyStat]
};
